package com.open.capacity.common.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

/**
 * 问卷记录表,用于记录用户完成问卷的时间，以及打分情况等
 *
 * @author liangd
 * @since 2021-01-29 16:36
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class PaperRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 问卷记录id，主键，自增
     */
    @TableId(value = "pareid",type = IdType.AUTO)
    private Integer pareid;

    /**
     * 问卷id
     */
    private Integer papeid;

    /**
     * 用户id
     */
    private Long userid;

    /**
     * 总分数
     */
    private Integer pscore;

    /**
     * 完成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date fintim;

}

